package cn.bqjr.eily.samples.entity.vo;

import cn.bqjr.eily.samples.entity.po.User;

import java.util.Date;

/**
 * 登录返回信息实体类
 */
public class LoginTokenVO {
    private Date timestamp;
    private String token;
    private User userInfo;

    public Date getTimestamp() {
        if (null != timestamp) {
            return (Date) timestamp.clone();
        }
        return null;
    }

    public void setTimestamp(Date timestamp) {
        if (timestamp != null) {
            this.timestamp = (Date) timestamp.clone();
        }
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public User getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(User userInfo) {
        this.userInfo = userInfo;
    }
}
